<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *公告管理
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'adv';
if($_RQ['op']=='adv'){
	$return['item']=$this->plugin_setting('adv');
	
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('adv',$postdata);
		exi('设置成功');
	}
	
	
	$htmls=array(
		'type'=>'edit',
		'desc'=>'入口场景广告设置',
		
		'edit_tab'=>true,
		'edit'=>array(
					array('name'=>'status','title'=>'是否开启','type'=>'switch'),
					array('name'=>'image','title'=>'入口广告大图','type'=>'image',),
					array('name'=>'url','title'=>'跳转页面','type'=>'string',),
					
		)
	);
	$return['htmls']=$htmls;
	exi($return);
}